* Reduced LoC for problem 1.