passing valid-input tests with first code
passing invalid binary test
refactoring