add code examples for traits
Merge pull request #3 from typesafehub/wip/traits

add code examples for traits