Added WriteLine method