Update part about higher-order functions to just the calculation of the dot-product...