DESIGN AND IMPLEMENTATION OF A 3 LEVEL BATTERY