improving the sample: organizing code in packages, as in real world
update README