helper file for Problem 11