Modified main files for step 4 of chapter 12 practical session. #4