```
import java.util.Scanner;
import static java.lang.System.*;
import static java.lang.Math.*;

public class MPHRunner
{
    public static void main( String[] args )
    {
        Scanner keyboard = new Scanner(in);

        out.print("Enter the distance :: ");
        int dist = keyboard.nextInt();

        out.print("Enter the hours :: ");
        int hrs = keyboard.nextInt();

        out.print("Enter the minutes :: ");
        int mins = keyboard.nextInt();

        MilesPerHour test = new MilesPerHour(dist, hrs, mins,time);
        test.calcMPH(dist,time);
        test.print();
    }
}

```

When I try to compile this, it tells me that it cannot locate the variable `time`. It should be found from the other class, included below...

```
import java.util.Scanner;
import static java.lang.System.*;
import static java.lang.Math.*;

public class MilesPerHour
{
    public int distance, hours, minutes;
    public double mph, time;

    public MilesPerHour()
    {
        setNums(0,0,0,0);
        mph=0.0;
    }

    public MilesPerHour(int dist, int hrs, int mins)
    {
        Scanner keyboard = new Scanner(System.in);
        out.println("enter distance");
        out.println("enter hours");
        out.println("enter minutes");
    }

    public void setNums(int dist, int hrs, int mins, double time)
    {
        distance = dist;
        hours = hrs;
        minutes = mins;
        time = ((hrs*60)+mins)/60;
    }

    public void calcMPH(int dist, double time)
    {
        mph = dist/time;
    }

    public void print(int mph, int dist, double time)
    {
        System.out.println("at "+mph+"MPH, you can go "+dist+" miles in "+time+"hours.");
    }
}

```

Any assistance with this would be much appreciated.