implemented basic Exec with tests (positive and negative)