Bookkeeping with the first law | StemPy Lab