changed the example a little bit but it needs comments before getting merged