Applied module pattern to slots