Created Substrate class.