create local module, more oop way of doing