added an exception for cases when the columns and rows don't match for multiplication