solved hw. mb.