first version of the code for the oxygen tank