Implementing the rules