This paper discusses the implementation of the renewable energy sources and the energy storage system to the smart grid by means of simulating toolkit of Modes. The output curve of photovoltaic and wind power plant is also the part of this paper. This paper analyses the difference between residential and commercial load. The test system was made in Modes for modelling all possibilities. The possibility of connection energy storage is analysed. The storage system is used for charming the load peaks during the day to compare smart grids with energy storage and without it.