assignment 3: first adaption