Hw 5, 6 and 7 FINAL COMMIT

All homework assignments are now finished.