CS 340 Homework 1