added print() and countdown() functions