I can't understand why my program doesn't work.