Exercises 26, 28 and 29.

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