added excersize 5a solution