         var allAttributes:[UICollectionViewLayoutAttributes] = []
         allAttributes.append(contentsOf:cellLayoutAttributes)
         allAttributes.append(contentsOf:headerLayoutAttributes)
+        allAttributes.append(contentsOf:footerLayoutAttributes)
         
         for layoutAttribute:UICollectionViewLayoutAttributes in allAttributes
         {

        contentWidth = 0
        contentHeight = 0
        headerLayoutAttributes = []
        cellLayoutAttributes = []
        
        super.init()

            {
                var index:Int = 0
                var positionX:CGFloat = 0
                var equationItems:[MLinearEquationsSolutionEquationItem] = []
                equationItems.append(contentsOf:equation.items)
                equationItems.append(equation.equals)
                equationItems.append(equation.result)
                
                for item:MLinearEquationsSolutionEquationItem in equationItems
                {
                    let indexPath:IndexPath = IndexPath(
                        item:index,
