adding structure for tutorial, copy from js1