my solution to hw1