Table class -PS

put my functions into header file