Exercises in coding