New class with Algorithm