Working on polyline example. Also decided to make Vec element access more concise.