Pope preaches hope to jobless, immigrants, prisoners