 import QuartzCore
 
 class PlaceCarouselViewController: UIViewController {
-
-    // All views in the background are going to be displayed using a stack view
-    lazy var baseView: UIStackView = {
-        let view = UIStackView()
-        view.axis = .vertical
-        view.distribution = UIStackViewDistribution.fillProportionally
-        view.translatesAutoresizingMaskIntoConstraints = false
-        return view
-    }()
 
     // the top part of the background. Contains Number of Places, horizontal line & (soon to be) Current Location button
     lazy var headerView: PlaceCarouselHeaderView = {

        view.translatesAutoresizingMaskIntoConstraints = false
        view.backgroundColor = .white

        // this is adding a drop shadow to the view. 
        // note: Doesn't seem to be working in stack view
        view.clipsToBounds = false;
        view.layer.shadowColor = UIColor.black.cgColor;
        view.layer.shadowOffset = CGSize(width: 0, height: 5);
        view.layer.shadowOpacity = 0.5;

        return view
    }()

        super.viewDidLoad()

        // add the views to the stack view
        view.addSubview(headerView)

        // setting up the layout constraints
        var constraints = [headerView.topAnchor.constraint(equalTo: view.topAnchor),
                           headerView.leadingAnchor.constraint(equalTo: view.leadingAnchor),
                           headerView.trailingAnchor.constraint(equalTo: view.trailingAnchor),
                           headerView.heightAnchor.constraint(equalToConstant: 150)]

        view.addSubview(sunView)
        constraints.append(contentsOf: [sunView.topAnchor.constraint(equalTo: headerView.bottomAnchor),
                                        sunView.leadingAnchor.constraint(equalTo: view.leadingAnchor),
                                        sunView.trailingAnchor.constraint(equalTo: view.trailingAnchor),
                                        sunView.heightAnchor.constraint(equalToConstant: 90)])

        view.insertSubview(mapView, belowSubview: sunView)
        constraints.append(contentsOf: [mapView.topAnchor.constraint(equalTo: sunView.bottomAnchor),
                                        mapView.leadingAnchor.constraint(equalTo: view.leadingAnchor),
                                        mapView.trailingAnchor.constraint(equalTo: view.trailingAnchor),
                                        mapView.bottomAnchor.constraint(equalTo: view.bottomAnchor)])


        // set up the subviews for the sunrise/set view
