initial commit for refactored example & extract method for when logic