Having some trouble with the module. looks like there is something missing in the code several places? 