added generator function to MD5Type class