PUt this file code in a method. Don't repeat yourself!!