This module is a sample starting point for the Appropriate Module Design lab series. Unless you are currently taking that course, this module is certainly not what you want. This module is poorly designed and fragile, and it will likely break any system you apply it to.
Don't use it.