added solutions for PAT1