Implementation of the class structure in pr03