finished boolean exercise