A couple programs from playing around with scheme (functional programming) and prologue (logical programming).