Converted Map to Framework

All the functions have to be in a table that is returned, check out
this or Drawing for more info