code from various educational excercises