moving methods and variables between modules to encapsulate functionality