well i think. you are making a small mistake. follow this tutorial carefully its bit more complicated. make sure all joints are names as they are named in the tutorial and make sure all the constraints you apply are correct. first you try this tut again carefully. if you still not getting it. then i will tell you one another method much more simpler than this one