My code is really just an example.
My code does not set a default value for other fields in the row. If you want of need that then you would add them near the end where the new rows are added. The same for any other fields/default values you want to add to each row.