Added 'end program' to demonstrate that file is closed