added spinner to show work in progress in example 8.2