Added the class structure for handling the executions of blocks

Added a factory design pattern + started implementation of the Gradient
block.