Homework

Had some issues, did not get a chance to fully debug.