First draft

Followed same structure as the vector mean example, replacing mean with
solve as appropriate