Data block object

Created a class for data block object and incorporated it in the code