redone resources, done via a txt file and a abstract class to model all resources