swift exploration and examples on real life examples