Created revenue function within Vendor class.