Hi Simon
You need a pull down or pull up resistor depending on the logic level you want on the output. This is your first lesson :), don't leave input pins floating, tie them to one of the supply lines. Example if you are going to be exerting the pins high then you pull them low and vice versa...