code works, examples and tests need to be fixed