Homework 2 for class