Implement while, fixes issue #10.