using a new layout
testing and refactored problem 1