Lattice Class Implementation