tutorial modified according to pkg change