example program from class