Code of the 1st plot