trying class structure for monte carlo