Created function to make table elements