Removed unnecessary friend statements.