Make component lib a class, Library