i hav implemented this program but its not correct