implemented bet method