The first(terrible) version of Masters thesis