added module design pattern

playing around with patterns