Version 1, without errors and only one class