Changed parameter type of contains to Object