Harry was doing his homework but had trouble with math.
Harry decided math would be a great topic for a video game.
Harry tried to integrate and loved it.
He tried to integrate something he loved into it.