Programs from subject programming and algorithmics 2