Extended example; got rid of errors