Finished hw3 assignments