Defined Lattice class.