put scanner inside UtilityMethod class