Fixing 'no-arg constructor not present' error