When I almost got bitten

One day when I was getting off the bus there was a random dog just staring at me. So, of course, I walked towards it and then it started barking at me! After the dog barked at me , like every person would do, I kicked it. The dog looked mad so I took off running as fast as I could so it started chasing me! When I got to the gate I opened it then slammed it in the dogs face. The dog ran away after a while so I went inside and stared to watch TV in the living room.