tested and working hw2 part 1
final product