since these test cases are all identical could you just use an array and a for loop?