implemented spell and client example