Adding singleton example, they still confuse me. Asked for advice on stackoverflow (see comment in file)