lecture 5

made tab gen function to clean up and add tabs after certain values