wrote code for calculating the average lifetime of a H3O molecule