finished hw3-3