towards functional example