Created variables and checks