An introduction to waves