(a) A person is guilty of burglary in the third degree when he enters or remains unlawfully in a building with intent to commit a crime therein.

      (b) Burglary in the third degree is a class D felony.