solved problem two