better formatting for explanations
solutions to problem 2