Finished hw4. Only documentation left to be done.