ex5_18 & 5_19 attempted but not working properly, bored of these!