working
new codes
edited..
edited by praveen