updated ex01 w all methods