Basic Utilities for Problem 1