finished basic chapter 12

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