working lab6 basic beta