Added a contians mehtod and removed the public property to the favorites dictionary