in-memory datahandler and sample code added