added extract method. files were missing