[demos] retrieving of abstract class
[demos] using logger instead of writeln