         }
     }
     
-    override func layoutSubviews() {
-        
+    /// Positions each button within the frame
+    private func positionButtons() {
         let areaUsedBySpacing = spacing * CGFloat(daysOfWeek.count + 1)
         let buttonSideLength = min((frame.width - areaUsedBySpacing) / CGFloat(daysOfWeek.count), frame.height)
         let buttonSize = CGSize(width: buttonSideLength, height: buttonSideLength)

    
    // MARK: Placing and Customizing the button's
    
    private func createButtons() {
        for _ in daysOfWeek {
            let button = UIButton()

    var textColor: UIColor = UIColor.whiteColor() { didSet { customizeButtonAppearance() } }
    
    @IBInspectable
    var fontSize: CGFloat = 16 { didSet { customizeButtonAppearance() } }
    
    @IBInspectable
    var spacing: CGFloat = 5 { didSet { positionButtons() } }
    
    // MARK: Instance variables and structs
    
