Update hw3-2

Adjust function display to make it more flexible.
Change the behavior of function import from append to overwrite.