Modified some of the example, trying to write some stuff by myself etc..