implemented a function to print the current rack