Very basic programs written as part of learning Prolog