0x03 - put the function in a while loop, but currently not working right. Will fix after installing boost libs.