refactor methods into single responsibilities
Merge pull request #7 from sealocal/refactor_methods

refactor methods into single responsibilities