Cleaned up example code for github rendering