Almost finished

All the functions are done