add method 'extract' to hash