added digit recognizer
changed usage of random class
merged files