Lab 3 implemented