added post class
added mainactivity