basic function fininished.

need add another additional function.