code for worksheet 3