First program completed of chapter 5