Design And Implementation Of A Lab-Scale Microgrid System