organize and pack functions in one object and reuse some code.