sample following lecture 4B