added methods to print greeting and farewell. closes #1