def version

using lattice for the last graph