The file reader example recaftored to prevent CallBack Hell