initial code for elastic membranes, school project