Homework 1 for CS 340