changed getHeading type to Vector and added void constructor