programs related to mathematical billiards