sunny prototype code