This repository contains the code for the GdP2 class (Java)