adding detatched example
first functional version