DESIGN AND IMPLEMENTION OF A THREE PHASE GRID