Reproduced the 3rd plot