First complete code - the big beginning