added module functionality to models folder