Added add item to the capsule
Refactoring