fixed logical operation
added quantifier
added Ruby quantifier operator