Pacman V3

Version 3. Work from here. Initial commit.