refactored all of the modules. add weight and bias into module class.