Logic Implemented