Encapsulated Classes with Reference Semantics