Programs for a class test from programming