Added while loop and object notes.