changed variable names
added "add" and "toLine" methods