finished first version but for examples