Some code written during studying