Collective modes in an inhomogeneous beam injected plasma