542 hw 4 solution and fix the hw and assignment grammar mistakes