ansered some questions
The program is fixed and completed
Merge pull request #5 from Vutisat/vutisat

Completed the assignment.