Implement week 5 exercise 1-5.