added detector example but this is not finished.