this is basic code for ios beginers.