Created bid class extended main API modified the logic in API