Added prettytable function