Transformed goal from int to long int + corrected small mistake