added hacked sample code
design notes