ADDED function assignPlates
UNFINISHED function setEndPoint