adding final module code