added get method to dictionary class