using example as template