First commit. Add uniform grid function class.