implemented main files (2)