Training if-else and switch