Declaring variables at the begining of the function