I took this from the Types and Providers book, I'm not sure if the other method works, I'll try it out.