Code for Japan Project Rule (for lecture)