Pass vector from class as parameter