add queue length and empty space calculation, ready for testing