Miwa's example code