added npc and examples