Required classes added and acitivities defined