Homework first version finished.