Prolog day 2 WIP.