adding functions to script that will create final typing table