finished the foreach method in teststripedMap.java