If i wanted to say:

I am thinking about giving him a cake.

Is this how it would be?

я думаю о том, что я дал ему торт.

I just get those tricky little constructions sometimes...

Thanks