added instructions to help understand code