started using the hashmap to map names to classes