how to invest in long term investment explained