I have to make a program that uses two files called coin. One file named coin and the other named coin tester. The directions in the book are confusing to me, but I still tried to do the assignment. 

Here are the directions that were given:

> 
> Create a Coin class that includes a variable faceUp that stores either a 0 for heads up or 1 for tails up, an accessor method named showFace() that returns a 0 if the coin is heads up or a 1 if the coin is tails up, and a
>  modifier method named flipCoin() that assigns a random integer between 0 and 1, inclusive, to the variablefaceUp. 
> 
> 
> 

Test the class with the following client code:

```
public class CoinTester{
    public static void main(String[] args) {
        Coin nickel = new Coin();
        if (nickel.flipCoin() == 0) {
            System.out.println("Heads up!");
        } else {
            System.out.println("Tails up!");
        }
    }
}

```

Here is my code for the file named coin:

```
public class Coin {
    private int faceUp;

    public Coin() {
        faceUp = (int)(Math.random() * 2);
    }

    public int showCoin() {
        return faceUp;
    }

    public void flipCoin() {
        faceUp = (int)(Math.random() * 2);
    }
}

```

I know for sure I did it wrong because I'm confused and the program has syntax errors. I feel like it is not possible with the directions im given. The CoinTester is expecting a return method but I am not allowed to because of the directions.