Implemented method stub for the isValid method
Created abstract method for isValid