basic physics functional, separate state and util, organize imports