A taxi is free when the light on the roof of the vehicle is green (red means it is occupied). If any of the lamps A-B-C or D under the light is on, the taxi is also occupied. If nothing is lit, the taxi is unavailable. If the device is hidden, the taxi is not in use.