Finalized code for generating auction values