Added src and tests for lab2.