Source: http://web.pdx.edu/~newsomj/cdaclass/ho_three-way.pdf