loveseat vs sofa size cost function