moved all computations to different class
moved print functionality to different class