init.
basic functions are completed.
next is view.