Changed assignment to check for implicit setter named set_x(new_value) instead of just x(new_value).