Added Factory and blueprints.
Added Rand helper class.