My question involves criminal law for the state of: Maryland

Hi. Last night I smoked a joint of marijuana on top of an empty parking garage by my house. Security for the shopping area came up and caught me just as I was putting out the joint.

They asked if I had anything on me or in my car. I told them I had a little more marijuana in my car (a baggie of 2-2.5 grams) and I gave it to them. I was nice and compliant, and they were nice to me as well.

They took me to the security office, where they called a police officer. He arrived and wrote me a citation to attend court.

I am a 20 year-old male. This is my first offense of ANY kind. No traffic tix, etc. I was told I would most likely have to go to a anti-drug class. I was wondering if this is usually an option IN PLACE OF a fine? Also, is there any estimate on how much this might cost?

I'm really nervous about this whole thing, and I appreciate any information you can give me!

Thank you in advance for taking your time to answer my question.