First rough implementation with simple example