Created a basic table generation method