Final commit before class, program still not working as expected