first try, using vector from example as reference