Added code for Herds

Just a base, but hopefully it will be implemented eventually.