use pry instead of irb, isolate methods into class