Formatted Line class to recommended approach