added the area and cost instance methods