Extending class functionality

all 4 question complete