Using flexible elements for reciprocating movements