Created method and conditional statements for double digit numbers