add my attempt to complete q3