Made progress in get_block_t function. Still not working though