working code from xtb tutorial