Okay, so what is wrong with your original code then?