added methods to all files changed. Some methods not finished yet. Need to finish run().