Complete Boolean exercise