Puppy being a puppy?

My 3 month old pup has started recently getting pissed at me when I keep him from doing something he shouldn't. He then gets mad and starts growling and throwing a pissy fit trying to bite me.

Any ideas on how to solve?