add dateForKey and allKeys methods