tutorial now reads from text file