Solved P3 & P4