Let students know that once all the tasks are completed, they can have any leftover class time to socialize. Also,tell them you will stop teaching whenever they are talking or off task, so it's to their benefit to work quietly to earn as much time as possible.