Did work for assignment 3