added capsule class