pnkz function use class