Added code examples and a few rules