Making first test pass, only works with an example but can be generalized