beating inflation with investments