use valueOf instead of new Integer
log instead of print
upgrade maven dependencies