Passing objects by value/ by link