adding detail class