Added Reference and ReferenceType classes