Added the template for the setBlock method