first commit cotaining compiling code
changed all deprecated stuff