My code is simple but "it works on my machine", so where is the mistake?