Early inflation, isotropization, and late time acceleration in a Bianchi type-I universe