John Legend is working on sitcom based on his schooldays