This week's book giveaway is in the Cloud/Virtualization forum. We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line! See this thread for details.
The error message speaks for itself. You are calling the getDist() method on line 11 and it assumes it to be a method in the SimpleLocation class because there is no class name or object reference preceding it.
You have to either write this method yourself or figure out which class does have the getDist() method.