Now the write rows method han set the titles