chaged @friends in the friends method from an array to a hash