A function has a name, parameters, a visibility, a state mutability and a return type.
A mapping is a key-value store, ideal for balances and records.
Reference types such as arrays, structs and strings need a data location.