Update template ball model. part 1.

not finish yet.