completed problem 22 (includes a .txt file in res)