Homework week 3. Hope this works.