simple code
simple bugged code