Dimension mismatch error

Thank you Martin. It works now