added a writeTable function