implementing scenario approach to set_salary