add setProperties method to BaseClass