Fixing tutorial3 sample