The defendant appeals as of right from a plea-based conviction of larceny in a building, MCL 750.360; MSA 28.592. She was sentenced to a term of 2 to 4 years in prison, to be served consecutively with her sentence on a prior conviction.
The instant charge stems from an incident which occurred while the defendant was serving a sentence at a community corrections center pro*86gram. Ms. Johnson was on her way to a laundromat to do her wash. She stopped at the Family Foods market. Although she had sufficient money, she took laundry detergent worth less than $3 and put it in her purse, not intending to pay for it. Ms. Johnson was apprehended before she left the store.
On appeal, the defendant contends that she was not "incarcerated” at the time the instant crime was committed, so that the consecutive sentencing statute, MCL 768.7a; MSA 28.1030(1), was erroneously applied.
MCL 768.7a; MSA 28.1030(1) provides for mandatory consecutive sentences for offenses committed by a prisoner or an escapee, as follows:
"Sec. 7a. (1) A person who is * * * incarcerated in a penal or reformatory institution in this state, or who escapes from that institution, and who commits a crime during that incarceration or escape which is punishable by imprisonment in a penal or reformatory institution in this state shall, upon conviction thereof, be subject to sentence therefor in the manner provided by law for such crimes. The term of sentence imposed for the crime shall * * * commence * * * at the expiration of the term or terms of sentence which the person is serving or * * * has become liable to serve in a penal or reformatory institution in this state.”
There are no cases which specifically construe a community corrections program as being a penal or reformatory institution within the ambit of this statute. However, statutes relating to the same subject or having the same general purpose should be construed to be in pari materia. Wayne County v Dep’t of Social Welfare, 343 Mich 475, 479; 72 NW2d 200 (1955). Thus, the statute which deals with prison escape, MCL 750.193; MSA 28.390, may be read in pari materia with the provisions of MCL 768.7a; MSA 28.1030(1). Section 2 of the *87escape statute, which has since been amended to include a community residential center,1 defines a "prison” as follows:
"(2) The word "prison” as used in this section shall include any Michigan state prison, penitentiary, reformatory, state house of correction, camp constructed and maintained under the provisions of Act No. 274 of the Public Acts of 1949, as amended, being section 798.351 of the Compiled Laws of 1948, or any penal camp, except probation camps or probation recovery camps, and shall further include the grounds, farms, shops, road camps or places of employment operated by such institution or under control of the officers thereof, or the department of corrections, or of any police officers of this state, or of other persons authorized by the department to have prison inmates under their care, custody or supervision, either in an institution or outside an institution, whether for the purpose of work or medical care or otherwise.”
In People v Strong, 53 Mich App 620; 219 NW2d 804 (1974), a YMCA corrections program was found to be a prison for purposes of the escape statute. In People v Smith (On Rehearing), 89 Mich App 478; 280 NW2d 862 (1979), a hospital was held to be within the scope of the escape *88statute. It would subvert legislative intent if we were to hold that the defendant herein was in a noncustodial setting at the time of the charged crime. A similar conclusion was reached in the recent case of People v Mayes, 95 Mich App 188; 290 NW2d 119 (1980), which held that consecutive sentences were appropriate where the defendant committed a crime while in a community halfway program.
Since we have upheld the appropriateness of the trial court’s consecutive sentencing, the defendant is not entitled to sentence credit for the time spent in jail between the time of arraignment and sentencing. People v Patterson, 392 Mich 83; 219 NW2d 31 (1974), and People v Chandler, 59 Mich App 656; 230 NW2d 16 (1975).
Affirmed.