Adding the 'main' block snippet