Turning the table into code