Added new method for vector creation