Finished Practice problem one for chapter 4