Added attempt at a heirarchical model. Still working on it.