Oh, and in 1h, take out the stuff about array B. It isn't needed.