following the instructions in the assignemnt