Implemented  logical operator