Use pattern instead of actuall lattice instance

modified:   objectives/shapes.py