Updated fizzbuzz function and append functionality