Solved the examples, added coding style