Students: The investment function