Task3 needs friend-functions.