A switch based on self-assembled thymine