added swift playgroud source code for enumeration