final comit for proj2- with proper scan iterator

all tes cases passing