refactors executable class