Friend instead of struct