completed task2
prolog exercise respond to comments