Using Vector class