My first try, I edited the Vector code in order to make it work ... although it feels a bit unsatisfactory just editing mr Peng's code.