Added examples, based on Ruby and JavaScript