Adding unfinished main

A few functions copied from a tutorial online, need to finish soon