Beat well together the yolks, sugar, and cornstarch; dilute it with the boiling milk, and stir it over the fire until thickened; then remove, add the flavoring, and let it cool. If coffee flavoring is wanted, use one half black coffee and one half milk. If chocolate, melt three or four ounces and add it to the custard.