Wrapped everything into a class and using genereator to spit out rows