Fix bad greater than less than conditions in code snippets of lab 4