refactor line.rb
delete unnecessary functions
add Association class