add "Write" method for writing bill