Implement NSUserDefaults

Actually, this does not need to be an NSNumber at all, you are not gaining anything from it. Can just be NSInteger. But I'm a bit confused as to what's going on here.