replaced all print statements and return null with throw new...