added initial code and diagram