initial code, made for presentation