refactored collaborations_lines function
added square class
updated square class for job of class and variable name in initialize