Preparation of amide and amine groups containing copolymers of methyl methacrylate and their performance in solid polymer composites