refactored the class, added help method