Initial code that uses curses