This and the next two lines can also be done using a matrix multiply.