Put the verbs in brackets in the correct tense (Past Simple, Past Continuous, Past Perfect, or Past Perfect Continuous).
He (repair) his car for two hours before he (realize) he needed a new part.