setMaxLength() method added and tested!