Module refactored with prototype.