Using a simple object insteand to acommodate functions