hw3 initial commit. First problem done.