Topics In Ergodic Theory And Ramsey Theory