2nd update! many passing test cases in a.sh