completes assignment 5, kap 4

Signed-off-by: Alexander Skjolden <alex@plastboks.net>
completes oppgave 6, kap4

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