Implemented a vector class