How does a vector quantity differ from a scalar quantity