completed first method and 4 tests