added input function
added args to __call__ from __init__