Add prolog 2nd day code