Flyweight and Proxy homework