complete problem 39
complete problem 40
complete 41, add utils
fix some styling stuff