Code sample and readme updated.