add function print
Merge branch 'master' of https://github.com/qianchen92/Comp-Tp2