My one teacher had a great way of dealing with preventing lazy groupmates. He would create groups based on grade average. I was always at the top of my class so I got put with other hard working people.