Replaced example spec with a working implementation.