Defined a blocks generator