added encoder motor's example