Fixed some errors in my code samples