implemented what was given in example, but example is incomplete and I don't understand this pattern too well. Might try something else.