Added solution which leans heavily on existing code.
Updated README.md.