I need to put adverbials in fronted position.

a/Tom was running to the shop.
b/The dog barked and then it lay on the sofa.

my version:

a/The the shop, Tom was running. ; is it correct?

and I have no guess on the b.

pls help.