Assignment 2 of SPL