hats with removable portable memory device which, when attached to the device operation to perform