initialization by the tutorial - working code