my code from learning letscodejavascript and following along with test-driven development