Added run function

not sure if it should be there... haven't decided