Writing create / input methods for Vector and Matrix classes