Create main

Unchecked code, possible errors.