changed complex class to simple method
Merge pull request #3 from RyanSnodgrass/method

changed complex class to simple method