changed the hardcoded example in 2d.cpp