Problem 3: Interesting use of static variable