Whincup grabs third Supercars medal