Refactored: better example code structure
Removed variance annotations