moving to define module in its own class