Flyweight and proxy implementation in one project