some simple code with work and live,it maybe help me.