Define Vector Class and vector methods