Up to closing rule implemented and tested