modified rpg_tutorial