getting there with matrices