Created an abstract class for multi-block parent code.