create data struct around phi
new test file
add some useful func,such as get,set