module pattern in action