Then, why dosen't my original code work?