First swift code