Exercise 1 to 5

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