why do we need to extends the class if can we use just by importing?