Added function displayBlock