refactored code. Added Carousel