re-coding portfolio3