Fix code samples

author: diane fleming