finishes sample program