added my code

It is not yet checked, so probably full of errors