organize the format only.
use pointer instead of body.
for now do not need this.
construct one unique solve function to be called from outside.