Helper class added

Code changed to work with Helper class. Helper class moves functions so
that they are reusable