homework 1 for Cs340