@shubhank008, see the code above

I Have already solved my problem, thanks to lifetalk and to sin