#4 refactor out to common.sh
correct function name
Merge pull request #7 from andystanton/feature/abstract-common

Feature/abstract common