altered code to allow user to input their own salary requirements