refactored to be testable
renamed script
fixed lint errors
first test