My buggy code

Buggy