create a class to represent a vector of a method