Cleaned up code examples