updated solutions to Challenge 3 and 4.