Added examples for nested and anonymous classes