Added Random class. Thread implementation in progress.