introduce lattice class