Rev 3

Added one working function and a partial non-working code.