fix readme

Added the correct way to implement the callback