Homework 3 final version

last and final version
finished all questions & my style is consistent