preparing class