Added displayChunks method code