drawing Class

refactoring for OO. lines stored in JS array