how to compose an invention