Exercises from learning C