Created TCollection.class and made TMenu extend it, moving some of the
functionality from TMenu to TCollection