finished hw3 pt 1