example for salary problem