solve problem no 6,7,9,11 according to specification
commit all