weight vector class