Fixed method names for lab3.cpp and added typescript