apply coding conventions to first three examples