required_sum is not an instance variable