Fixed rules in readme

The previous version would have a class cast exception.