which of the following is a complex sentence

I am going to the store, but I will first need to stop at the bank.

In this sentence, "I am going to the store" is an independent clause, and "but I will first need to stop at the bank" is a dependent clause. This makes the sentence a complex sentence.