Wrote first statement for logical operators