To get his good ending you need to go to one of the classes he's in to work on the project together, and then go to the library to work on it if i remember correctly :)