Thanks for detailed explanation! The changed code compiles but unfortunately it still crashes in the same line. :(