Refactored Sample1