added sample code

just some code that works