Prog 3 - both test cases match