sample code for create an account