Easier version of Exercise 1 to get faster results