added ostream operator << to Reference class