Exercises 32, 33, 34 and 35

Signed-off-by: Salil Kanitkar <slashforu@gmail.com>