first version of trader class