removed unnecessary code from assignment 4
finished programming assignment 5