Console app for first pattern