Changed the order of codes around, added a newNumber function