exer 2.26
exer 2.27 - took me a while but i got it.