work as my swift demo