fixed connected/2 and updated with week 3