Fixed some code examples