R, initialPressure, moles and initial temperature can be specified in the constructor.