complete code for module3