Improved the examples, no need to use a class here. Also, added reference to yield differences between languages.