Created functioning preferred vendor with date function