Practice enum in swift.