Simple exercise on methods