Write a steampunk story about a teacher set in a palace.