Passing arguments to object class