add Lattice class