Created LineObject class