issue #2 : implement function plt