Just copy this code and run you see that everything in this code is running , but third point say I am made a mistake.