section 2 cost fuction start