class 2

updated my guessing game formatting
added function code from class 2