add working cockpit example
Merge pull request #24 from aweiteka/examples

add working cockpit example