Alice and Bob are playing a game where they write numbers on a board. Alice writes a number represented by $$x$$, and then Bob writes a number equal to twice Alice's number plus 4. The equation that represents what Bob wrote can be expressed as:
$$y = 2x + 4$$
After that, Alice writes a number that is 3 less than Bob's number. This can be written with an equation as:
$$z = y - 3$$
Now if Alice's original number $$x$$ equals 5, what is the value of $$z$$?