Adding vector functions