A Colsed Form Solution for a Growth Model with Externalities and and Public Spending