making code into blocks