Create unit tests and implimentation Extract.java