"the rest" in itself means the entire part remaining or the whole of the remaining amount or number. There is no need to add "whole" or "entire".
I was behaving just like the rest of the class.
Come to think of it, I believe "all" could be used, though, quite nicely:
I was behaving just like all the rest of the class.
As for the second sentence, two determ