Added solution to lecture5 exercises