Implemented is_equal_to method in BuildingBlock class.