Solution for lab2_5