Imlemented code generating