A homemade clock got Ahmed Mohamed suspended from school on Monday and invited to the White House by the president on Wednesday.

As the story of a 14-year-old Muslim boy detained by police in Dallas for bringing a clock to school spread on social media — President Barack Obama weighed in with a tweet, saying on his personal Twitter account, “Cool clock, Ahmed. Want to bring it to the White House? We should inspire more kids like you to like science. It’s what makes America great.”