first example program from class