The sentence below is an example of a complex sentence. A complex sentence contains both an independent and a dependent clause. A independent clause is an idea that can stand on its own and be a complete sentence. Meanwhile, a dependent clause is not a complete thought and therefore cannot stand on its own.
In this case the dependent clause is: carrying an umbrella.
The independent clause is: the dog walked beside his master.