Write the Extract method and a test. Still needs testing though.