lab4, lab5 stubs implemented