reordered functions and implemented Statements correctly... -sai