Added function to generate feature vector,
still needs to be implemented.