Removed friend classes from Pointer.