SOLVE TRIVIAL ERRORS
#10 #9 #8 #6 #5
implementation reviewed and checked
close #10
#9 #8 #6 #5