refactored example into own directory