first three assignments in chapter 5

Signed-off-by: Alexander Skjolden <alex@plastboks.net>