Each cell of a 3×3 square can be painted either black, or white, or grey. How many different ways are there to colour in this table?