Simple module pattern implementation