making type of data to Plot fully abstract by requiring two additional parameters