In chapter 23, Freak is in the hospital. Max comes to visit Freak in the hospital for a brief amount of time. Freak gives Max a blank book and he wants Max to fill it up with all their adventures.
In chapter 24, Max sneaks out of the house to get to the hospital to see Freak. He starts booking it down the hallway to Freak's room. People tried to stop Max. Eventually, the police jumped Max and Dr. Spivak said that Freak didn't make it.
In chapter 25, Max lived in the down under for a while and missed Freak's funeral. Grim and Gram kept telling him to come out. Eventually he did and Grim talked to him about Gwen. Finally, Max took the book Freak gave him, and started writing in it.