Assignment 3 Tasks 1-7