resolved boolean exercise with mentor