Finished second problem