Molecular Dynamics Simulation of Linear Polymers in a Solvent