updated the file test1.pl with new functions for comparators and if/while statements