Added drawing method in LineContainer class