module pattern design snippet added