1st attempt
finally problem solved