New class for comparing reference variables