Please remove grammar issues from the given text
Just after finished eating bread, a homeless man came up and sat next to me.
Just after I finished eating the bread, a homeless man came up and sat next to me.