revenue method for Vendor class and tests for revenue