organize code modularly within single object