Worked on exercises from ch 7