refactors specs per exercise 1, section 5.6