contians solution for PA2