Exercises for using threads