changing to prac3 base code