Framework for developing teaching, demonstrative and solving programs for mathematics methods