A Two-Step Feature Extraction Algorithm