Tutorial on N curses