Solution to problem

WAAAAAAY more than was even HINTED at during lectures.