pos modifided for including object as well as tests written and documentation changed