Cleaned example code