created a npc class