add implementation of contains