Obligations of landlord and tenant