Add pause functionality to chap 13