Homework done

Spaghetti code