Added chained comparison (line 5)