Developing a new Detection class