lect8 program 2