A quick python script to solve Problem 6 in an OO manner.