Smart card application design