completed worksheet 10 code