it writes the same wrong message 3 times, that means that it has 3 errors only or the whole program is wrong??
can you make it run correctly?