creation of candlestick factory