Added classes to support spawning behavior
Added spawning code