This is some useful code for interview