example code added

just a basic impl