implementation of a small tutorial