How Black boxes in Aeroplanes work