For more examples, have a look at the python folder: 
language is different but principles are the same