compiling if. My first state monad =)