updated prac2 with working methods