final homework with code comments