This is a demo  by using swift