Partial work for the third case