have a default constructor and algo