vector of foo to list example