exampleblock changed to block,
added angle calculation between three points