Added complex code examples