Utilities and small projects in Prolog