tidying
adding info and demo for inheritance