some changes on code

i added a println testses
this is a doc for the first q in homework

i did all 8 q on