A nice design pattern.