Look at the possibility at a second hand D70. It's probably a better camera.
It is undoubtedly a better camera as it's above the D40x in the Nikon range. However the D40x is excellent as a beginner's camera - the D70 might be overkill.
Just be wary when buying second hand DLSR's that you buy from a reputable place with a guarantee - a high number of previous shutter acutations can shorten the life of your second hand camera.