finished hw3-1