Converted implicit def to implicit class