First prototype code