我第一次去看他的时候,他正在写一本新书.
He was working on a new book(主句)
at the first time(时间状语) i went to see him.(省略that的定语从句,现行词为time)