first working basis. Main activity and result activity implemented.