A Competitive Electricity Market Model