code prepared for interview at Jack Russell Software