task 14 automat solution added