position extractor basic code: