Friend function demo