The code from the last demo