readPrevious missing

 the readPrevious function is missing from the cpp file in lib.

so the example does not build.