formatting changes
modified call from 0 to maxId
wrote abstract method for inherited classes to implement regarding setting their own maxId to zero