example level set method