Added Lattice class.