started refactoring query to objects rather than public methods (not ruby way to use classes) and wrote query initialize