Formatted code using github mardowns